<!DOCTYPE html>
<html lang="{{=T.accepted_language or 'en'}}" class="no-js">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<title>{{=response.title or request.application}} | {{=response.meta.keywords}}</title>
<link rel="shortcut icon" href="{{=URL('static', 'favicon.ico')}}" type="image/x-icon">
<link rel="stylesheet" media="handheld" href="{{=URL('static', 'css/handheld.css')}}">
<script src="{{=URL('static', 'js/modernizr-2.0.3.js')}}"></script>
{{response.files.append(URL('static', 'css/base.css'))}}
{{response.files.append(URL('static', 'css/superfish.css'))}}
{{response.files.append(URL('static', 'js/superfish.js'))}}
{{include 'web2py_ajax.html'}}
{{
statusbar_enabled = globals().get('statusbar_enabled', False)
left_sidebar_enabled = globals().get('left_sidebar_enabled', False)
right_sidebar_enabled = globals().get('right_sidebar_enabled', False)
if left_sidebar_enabled and right_sidebar_enabled: width_content = '63%'
elif left_sidebar_enabled != right_sidebar_enabled: width_content = '740px'
else: width_content = '100%'
if left_sidebar_enabled: left_sidebar_style = 'style="display: block;"'
else: left_sidebar_style = 'style="display: none;"'
if right_sidebar_enabled: right_sidebar_style = 'style="display: block;"'
else: right_sidebar_style = 'style="display: none;"'
style_content = 'style="width: %s;"' % width_content
}}
</script>
{{block head}}
{{end}}
<!-- Google Analytics -->
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24223947-3']);
  _gaq.push(['_setDomainName', '.vstudy.cn']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<!-- End Google Analytics -->
</head>
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
<!--[if IE 7 ]>    <body class="ie7"> <![endif]-->
<!--[if IE 8 ]>    <body class="ie8"> <![endif]-->
<!--[if IE 9 ]>    <body class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->
<div id="module-whole" class="ez-wr">
    <div id="module-header" class="ez-box">
<header id="header">
    {{block header}}
    <div id="userinfo">
        {{try:}}
        {{=auth.navbar(action=URL(request.application, 'default', 'user'))}}
        {{except: pass}}
    </div><!-- #userinfo -->
    <a class="logo" style="color: black;" href="{{=URL(request.application, 'default', 'index')}}">
        <img id="header-logo" style="float: left;" src="{{=URL('static', 'images/logo.png')}}" />
        <h2 id="sitetitle" style="float: left;">
            {{=request.application.upper()}}
        </h2>
    </a>
    {{end}}
    {{if False:}}
    <div style="clear: both;"></div>
    {{pass}}
    {{if statusbar_enabled:}}
    <div id="statusbar"><!-- statusbar is menu zone -->
        {{block statusbar}} <!-- this is default statusbar -->
        {{#------ superfish menu ------}}
        {{=MENU(response.menu,_class='sf-menu')}}
        <script type="text/javascript">
        jQuery(document).ready(function(){
        jQuery('ul.sf-menu').superfish();});
        </script>
        <div style="clear: both;"></div><!-- Clear the divs -->   
        {{end}}               
    </div><!-- statusbar -->
    {{pass}}
</header><!-- #header -->
    </div><!-- #module-header -->

    <div id="module-content" class="ez-wr">
<div id="main">
        <div id="module-3-1" class="ez-fl ez-negmx">
            <div id="module-left" class="ez-box">
{{if left_sidebar_enabled:}}
    <nav id="left_sidebar" {{=XML(left_sidebar_style)}}>
    {{block left_sidebar}}
<ul id="menu">
    <li>
        <a href="{{=URL('edit')}}">{{=T('Posts')}}</a>
    </li>
    <li>
        <a href="{{=URL('new')}}">{{=T('Add Post')}}</a>
    </li>
    <li>
        <a href="{{=URL('edit_tags', vars=dict(taxonomy='category'))}}">{{=T('Categories')}}</a>
    </li>
    <li>
        <a href="{{=URL('edit_tags', vars=dict(taxonomy='post_tag'))}}">{{=T('Post Tags')}}</a>
    </li>
</ul>
    {{end}}
    </nav><!-- #left_sidebar -->
{{pass}}
            </div><!-- #module-left -->
        </div><!-- #module-3-1 -->

        <div id="module-3-2" class="ez-fl ez-negmr">
            <div id="module-center" class="ez-box">
    <div id="content" {{=XML(style_content)}}>
        <!-- <h1 id="title">{{=response.title}}</h1> -->
        {{include}}
    </div><!-- #content -->
            </div><!-- #module-center -->
        </div><!-- #module-3-2 -->

        <div id="module-3-3" class="ez-last ez-oh">
            <div id="module-right" class="ez-box">
{{if right_sidebar_enabled:}}
    <div id="right_sidebar" {{=XML(right_sidebar_style)}}>
    {{block right_sidebar}}
        Content Right Sidebar
    {{end}}
    </div><!-- #right_sidebar -->
{{pass}}
            </div><!-- #module-right -->
        </div><!-- #module-3-3 -->
</div><!-- #main -->
    </div><!-- #module-content -->

    <div id="module-footer" class="ez-box">
{{block footer}}
<footer id="footer" class="ez-box">
    {{=response.meta.copyright}} - 
    {{=T('Powered by')}} <a href="http://www.web2py.com/" target="_blank">web2py</a>
</footer><!-- End #footer -->
{{end}}
    </div><!-- End #module-footer -->
</div><!-- End #module-whole -->
</body>
</html>
